<?php

$host = $_SERVER['HTTP_HOST'];

$host_ip = $_SERVER["REMOTE_ADDR"]; //
$arr = array(
    'DB_TYPE' => 'mysql',
    'DB_HOST' => '127.0.0.1',
    'DB_NAME' => 'wawa',
    'DB_USER' => 'wawa',
    'DB_PWD' => 'newsy118',
    'DB_PORT' => 3306,
    'DB_PREFIX' => '',
    'DB_CHARSET' => 'utf8mb4',
    'MODULE_ALLOW_LIST' => array(
        'Home',
    ),
    'LOG_RECORD' => false, //日志开启
//    'TMPL_EXCEPTION_FILE' => './Application/Home/View/Public/404.html', //./Application/Home/View/Public/404.html
    'URL_MODEL' => 2,
    'LOAD_EXT_FILE' => 'common,system',
    'SHOW_PAGE_TRACE' => false,
    'SESSION_PREFIX' => 'maofan',
    'SITE_URL' => $SITE_URL,
    'SITE_URL_AJAX' => $SITE_URL_AJAX,
    'upload_max_size' => 100 * 1024 * 1024,
    'uploads' => array(
        'upload' => 'uploads/',
        'temp' => 'uploads/temp/',
    ),
    'pic' => array(
        'types' => 'bmp,jpg,jpeg,png,gif,ico'
    ),
    'privateKey' => '*&09aa%$_s@??maofan',
    'SESSION_AUTO_START' => true,
    'COOKIE_EXPIRE' => 7200, //cookie的生存时间
    'title' => '猫翻',
    'unit' => '积分',
    'pay_key' => 'maofan',
    'app_path' => $app_path,
  
);
if ($host == 'localhost') {
    unset($arr['TMPL_EXCEPTION_FILE']);
}
return $arr;
